package ooday04_1;

public class Fish extends Animal implements Swim{
    Fish(String name,int age,String color){
        super(name,age,color);
        
    }

   
    void eat() {
        System.out.println(color+"年龄为"+age+name+"小鱼再吃虾米");
    }
    public void swim(){
        System.out.println(color+"年龄为"+age+name+"小鱼再吃游泳");
    }
}
